import socket
port=9001
host="127.0.0.1"
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.sendto("this is a test!",(host,port))